package com.hl.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 商品分类对象 goods_type
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class GoodsType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分类id，主键自增 */
    private Integer goodsTypeId;

    /** 商品分类名称 */
    @Excel(name = "分类名称")
    private String goodsType;

    /** 商品分类描述 */
    @Excel(name = "描述")
    private String goodsTypeDesc;

    /** 是否平台类型：0 平台，1 商家 */
    @Excel(name = "是否平台类型", readConverterExp = "0=平台,1=商家")
    private Integer isPlatform;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setGoodsTypeId(Integer goodsTypeId)
    {
        this.goodsTypeId = goodsTypeId;
    }

    public Integer getGoodsTypeId() 
    {
        return goodsTypeId;
    }

    public void setGoodsType(String goodsType) 
    {
        this.goodsType = goodsType;
    }

    public String getGoodsType() 
    {
        return goodsType;
    }

    public void setGoodsTypeDesc(String goodsTypeDesc) 
    {
        this.goodsTypeDesc = goodsTypeDesc;
    }

    public String getGoodsTypeDesc() 
    {
        return goodsTypeDesc;
    }

    public Integer getIsPlatform() {
        return isPlatform;
    }

    public void setIsPlatform(Integer isPlatform) {
        this.isPlatform = isPlatform;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsTypeId", getGoodsTypeId())
            .append("goodsType", getGoodsType())
            .append("goodsTypeDesc", getGoodsTypeDesc())
            .append("isPlatform", getIsPlatform())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
